using System;
using System.Threading;

namespace MultithreadingApplication
{
  //使用 Thread 类创建的线程被主线程的子线程调用。您可以使用 Thread 类的 CurrentThread 属性访问线程
  class MainThreadProgram
  {
    static void Main(string[] args)
    {
      Thread th = Thread.CurrentThread;
      th.Name = "MainThread";
      Console.WriteLine("This is {0}", th.Name);
      Console.ReadKey();
    }
  }
}